<me:UIMULG x:Class="WPFExcelReport.TMUL"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                     x:Name="TV"
                    FontSize="14"
                    Loaded="Window_Loaded"
     >
    <me:UIMULG.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter  x:Key="not"/>
    </me:UIMULG.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" >
            <WrapPanel>
                <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=编辑}}" Click="EditCommand"></Button>
                <Button Margin="15,0,0,0" Content="{Binding Source={Localization:Translate Word=保存}}" Click="SaveCommand"></Button>
                 <TextBlock>ID</TextBlock>
                <TextBlock   HorizontalAlignment="Left" Margin="3" Text="{Binding Path=ROWNID}" VerticalAlignment="Center" Width="60" />
                <TextBlock Text="{Binding Source={Localization:Translate Word=程序}}"></TextBlock>
                <TextBox HorizontalAlignment="Left" Margin="3" 
                                   Text="{Binding Path=MLLOC }" VerticalAlignment="Center" Width="120" /> 
            </WrapPanel>
            <TextBlock Text="{Binding Source={Localization:Translate Word=关键字}}"></TextBlock>
            <TextBlock   HorizontalAlignment="Left" Margin="3" 
                                   Text="{Binding Path=MLKEY, Converter={StaticResource ResourceKey=gb2312}}" VerticalAlignment="Center" Width="300" />
            <TextBlock>English</TextBlock>
            <ex:TXT72  HorizontalAlignment="Left" Margin="3" Text="{Binding Path=EN, Converter={StaticResource ResourceKey=gb2312}}" 
                       TabIndex="1"
                      KeyUp="TextBox_KeyUp" VerticalAlignment="Center" Width="300" />
            <TextBlock Text="{Binding Source={Localization:Translate Word=EnterSave}}"/>
            <TextBlock Text="{Binding Source={Localization:Translate Word=简体中文}}"></TextBlock>
            <TextBox   HorizontalAlignment="Left" Margin="3" Text="{Binding Path=SCN,Converter={StaticResource ResourceKey=gb2312}}" VerticalAlignment="Center" Width="300" />
        </StackPanel>
        <DataGrid  Grid.Row="1" 
                    AutoGenerateColumns="False"
                    Name="dlgMaster"
                    EnableRowVirtualization="True"  
                    ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"  
                    HeadersVisibility="Column"                               
                    ScrollViewer.HorizontalScrollBarVisibility="Auto"
                    ScrollViewer.VerticalScrollBarVisibility="Auto" Margin="0,0,0.6,0" 
                    >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=ROWNID}" Header="{Binding Source={Localization:Translate Word=ROWNID}}"   Width="Auto"  MinWidth="40"/>
                <DataGridTextColumn Binding="{Binding Path=MLLOC}" Header="{Binding Source={Localization:Translate Word=程序}}"   Width="Auto"  MinWidth="40"/>
                <DataGridTextColumn Binding="{Binding Path=MLKEY, Converter={StaticResource ResourceKey=gb2312}}" Header="{Binding Source={Localization:Translate Word=关键字}}"   Width="Auto"  MinWidth="40"/>
                <DataGridTextColumn Binding="{Binding Path=EN, Converter={StaticResource ResourceKey=gb2312}}" Header="{Binding Source={Localization:Translate Word=英文}}"  Width="Auto" MinWidth="80"/>
                <DataGridTextColumn Binding="{Binding Path=SCN, Converter={StaticResource ResourceKey=gb2312}}" Header="{Binding Source={Localization:Translate Word=中文}}"  Width="Auto" MinWidth="80"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
   
</me:UIMULG>
